Optimal. Leaf size=54 \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{b \sin (c+d x) \cos (c+d x)}{2 d}+\frac{b x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0458303, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {3787, 2633, 2635, 8} \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{b \sin (c+d x) \cos (c+d x)}{2 d}+\frac{b x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3787
Rule 2633
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \cos ^3(c+d x) (a+b \sec (c+d x)) \, dx &=a \int \cos ^3(c+d x) \, dx+b \int \cos ^2(c+d x) \, dx\\ &=\frac{b \cos (c+d x) \sin (c+d x)}{2 d}+\frac{1}{2} b \int 1 \, dx-\frac{a \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{b x}{2}+\frac{a \sin (c+d x)}{d}+\frac{b \cos (c+d x) \sin (c+d x)}{2 d}-\frac{a \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0721349, size = 57, normalized size = 1.06 \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{b (c+d x)}{2 d}+\frac{b \sin (2 (c+d x))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 49, normalized size = 0.9 \begin{align*}{\frac{1}{d} \left ({\frac{a \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{2}+2 \right ) \sin \left ( dx+c \right ) }{3}}+b \left ({\frac{\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) }{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.22448, size = 62, normalized size = 1.15 \begin{align*} -\frac{4 \,{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} a - 3 \,{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} b}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71877, size = 105, normalized size = 1.94 \begin{align*} \frac{3 \, b d x +{\left (2 \, a \cos \left (d x + c\right )^{2} + 3 \, b \cos \left (d x + c\right ) + 4 \, a\right )} \sin \left (d x + c\right )}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sec{\left (c + d x \right )}\right ) \cos ^{3}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.29038, size = 132, normalized size = 2.44 \begin{align*} \frac{3 \,{\left (d x + c\right )} b + \frac{2 \,{\left (6 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} - 3 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 4 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 6 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 3 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}^{3}}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]